package com.cloudpolice.door.feignInterface.hystric;

import com.cloudpolice.door.feignInterface.VerifaceInterFace;
import lh.model.ResultVO;
import lh.units.ResultStruct;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

/**
 *
 * @author liaoyueli
 * @date 2020-04-15
 */
@Service
public class VerifaceInterFaceHystric implements VerifaceInterFace {
    private final String hystricMessage = "您好，服务器正忙，请稍后再试！";

    @Override
    public ResultVO imageUpload(@RequestParam(value = "fileStr") String fileStr,
                                @RequestParam(value = "face") String face,
                                @RequestParam(value = "type") String type) {
        return ResultStruct.error(hystricMessage, ResultVO.class, null);
    }

    @Override
    public ResultVO enterStaffInfo(@RequestParam(value = "imageIds") String imageIds,
                                   @RequestParam(value = "type") String type,
                                   @RequestParam(value = "idNo", required = false) String idNo,
                                   @RequestParam(value = "sex", required = false) String sex,
                                   @RequestParam(value = "address", required = false) String address,
                                   @RequestParam(value = "name", required = false) String name) {
        return ResultStruct.error(hystricMessage, ResultVO.class, null);
    }

    @Override
    public ResultVO getDetectImage(@RequestParam(value = "id") String id) {
        return ResultStruct.error(hystricMessage, ResultVO.class, null);
    }

    @Override
    public ResultVO searchFaceByPage(@RequestParam(value = "faceIds") String faceIds,
                                     @RequestParam(value = "searchType") String searchType,
                                     @RequestParam(value = "startTime") String startTime,
                                     @RequestParam(value = "endTime") String endTime,
                                     @RequestParam(value = "page", defaultValue = "1") String page,
                                     @RequestParam(value = "pageSize") String pageSize) {
        return ResultStruct.error(hystricMessage, ResultVO.class, null);
    }
}
